package com.hsxc.cdz.base.bean;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.hsxc.cdz.monitor.FSM.CachePile;

import java.util.Timer;
import java.util.TimerTask;

/**
 * @author 作者 : 陈钊
 * @version 创建时间：2016年8月20日 下午2:04:57 类说明：
 */
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class Reserv {
//    @JsonInclude(JsonInclude.Include.NON_EMPTY)
//    private CachePile cachePile;
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Station station;
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private ConsoleUser consoleUser;// 该充电站的运营商
    private int id; // 预约id
    private String userNo; // 用户编号
    private String pileNo; // 电桩编号
    private String reservCreateTime; // 预约创建时间
    private String reservStartTime; // 预约开始时间
    private String reservStopTime; // 预约停止时间
    private boolean isCancelled; // 是否取消 1--未取消 2--取消
    private String cancellTime; // 取消时间
    private String cancellReason; // 取消理由
    private double refundAmount; // 退回费用
    private double refundState; // 退费状态
    private String refundSuccessTime; // 退费成功时间
    private String firstWarnTime; // 第一次警告时间
    private String secondWarnTime; // 第一次警告方式
    private String thirdWarnTime; // 第一次警告内容
    private int firstWarnWay; // 第二次警告时间
    private int secondWarnWay; // 第二次警告方式
    private int thirdWarnWay; // 第二次警告内容
    private String firstWarnContent; // 第三次警告时间
    private String secondWarnContent; // 第三次警告 方式
    private String thirdWarnContent; // 第三次警告内容
    private String operatorNo; // 运营商编号
    private String stationNo; // 电站编号
    private String resNo; // 预约编号
    private int duration; // 预约时长
    private int state; // 预约状态

    public static final int RESERV_STATE_ON = 2;//预约中
    public static final int RESERV_STATE_CANCELL = 1;//取消
    public static final int RESERV_STATE_FINISH = 3;//预约完成
    // 只写在缓存中
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private TimerTask timerTask;// 定时器
    private int chargePort;


    public int getChargePort() {
        return chargePort;
    }

    public void setChargePort(int chargePort) {
        this.chargePort = chargePort;
    }

    public ConsoleUser getConsoleUser() {
        return consoleUser;
    }

    public void setConsoleUser(ConsoleUser consoleUser) {
        this.consoleUser = consoleUser;
    }

    public Station getStation() {
        return station;
    }

    public void setStation(Station station) {
        this.station = station;
    }

    public TimerTask getTimerTask() {
        return timerTask;
    }

    public void setTimerTask(TimerTask timerTask) {
        this.timerTask = timerTask;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public int getDuration() {
        return duration;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }

    public String getResNo() {
        return resNo;
    }

    public void setResNo(String resNo) {
        this.resNo = resNo;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserNo() {
        return userNo;
    }

    public void setUserNo(String userNo) {
        this.userNo = userNo;
    }

    public String getPileNo() {
        return pileNo;
    }

    public void setPileNo(String pileNo) {
        this.pileNo = pileNo;
    }

    public String getReservCreateTime() {
        return reservCreateTime;
    }

    public void setReservCreateTime(String reservCreateTime) {
        this.reservCreateTime = reservCreateTime;
    }

    public String getReservStartTime() {
        return reservStartTime;
    }

    public void setReservStartTime(String reservStartTime) {
        this.reservStartTime = reservStartTime;
    }

    public String getReservStopTime() {
        return reservStopTime;
    }

    public void setReservStopTime(String reservStopTime) {
        this.reservStopTime = reservStopTime;
    }

    public boolean getCancelled() {
        return isCancelled;
    }

    public void setCancelled(boolean isCancelled) {
        this.isCancelled = isCancelled;
    }

    public String getCancellTime() {
        return cancellTime;
    }

    public void setCancellTime(String cancellTime) {
        this.cancellTime = cancellTime;
    }

    public String getCancellReason() {
        return cancellReason;
    }

    public void setCancellReason(String cancellReason) {
        this.cancellReason = cancellReason;
    }

    public double getRefundAmount() {
        return refundAmount;
    }

    public void setRefundAmount(double refundAmount) {
        this.refundAmount = refundAmount;
    }

    public double getRefundState() {
        return refundState;
    }

    public void setRefundState(double refundState) {
        this.refundState = refundState;
    }

    public String getRefundSuccessTime() {
        return refundSuccessTime;
    }

    public void setRefundSuccessTime(String refundSuccessTime) {
        this.refundSuccessTime = refundSuccessTime;
    }

    public String getFirstWarnTime() {
        return firstWarnTime;
    }

    public void setFirstWarnTime(String firstWarnTime) {
        this.firstWarnTime = firstWarnTime;
    }

    public String getSecondWarnTime() {
        return secondWarnTime;
    }

    public void setSecondWarnTime(String secondWarnTime) {
        this.secondWarnTime = secondWarnTime;
    }

    public String getThirdWarnTime() {
        return thirdWarnTime;
    }

    public void setThirdWarnTime(String thirdWarnTime) {
        this.thirdWarnTime = thirdWarnTime;
    }

    public int getFirstWarnWay() {
        return firstWarnWay;
    }

    public void setFirstWarnWay(int firstWarnWay) {
        this.firstWarnWay = firstWarnWay;
    }

    public int getSecondWarnWay() {
        return secondWarnWay;
    }

    public void setSecondWarnWay(int secondWarnWay) {
        this.secondWarnWay = secondWarnWay;
    }

    public int getThirdWarnWay() {
        return thirdWarnWay;
    }

    public void setThirdWarnWay(int thirdWarnWay) {
        this.thirdWarnWay = thirdWarnWay;
    }

    public String getFirstWarnContent() {
        return firstWarnContent;
    }

    public void setFirstWarnContent(String firstWarnContent) {
        this.firstWarnContent = firstWarnContent;
    }

    public String getSecondWarnContent() {
        return secondWarnContent;
    }

    public void setSecondWarnContent(String secondWarnContent) {
        this.secondWarnContent = secondWarnContent;
    }

    public String getThirdWarnContent() {
        return thirdWarnContent;
    }

    public void setThirdWarnContent(String thirdWarnContent) {
        this.thirdWarnContent = thirdWarnContent;
    }

    public String getOperatorNo() {
        return operatorNo;
    }

    public void setOperatorNo(String operatorNo) {
        this.operatorNo = operatorNo;
    }

    public String getStationNo() {
        return stationNo;
    }

    public void setStationNo(String stationNo) {
        this.stationNo = stationNo;
    }
}
